<?php
session_name(DicomScienceAdmin);
session_start();

$nfirst = $_POST['firstname'];
$nlast = $_POST['givenname'];
$nusr = $_POST['username'];
$npass = $_POST['password'];
$nlvl = $_POST['userlevel'];

include ('../includes/gset.php');
include ('../includes/database/connect.php');
$sql_adduser = "INSERT INTO staff SET username='$nusr', lastname='$nlast', firstname='$nfirst', password='$npass', userlevel='$nlvl'";
$adduser = mysql_query($sql_adduser);
include ('../includes/database/closedb.php');

header("Location: useradmin.php")
?>